﻿namespace Hidistro.UI.SaleSystem.CodeBehind.Common
{
    using Hidistro.Entities.Promotions;
    using System;

    public class PromotionHelper
    {
        public static string GetShortName(PromoteType promotionType)
        {
            string str = "";
            switch (promotionType)
            {
                case PromoteType.Discount:
                case PromoteType.QuantityDiscount:
                    return "折";

                case PromoteType.Amount:
                    return "促";

                case PromoteType.Reduced:
                    return "减";

                case PromoteType.SentGift:
                    return str;

                case PromoteType.SentProduct:
                    return "送";

                case PromoteType.FullAmountSentTimesPoint:
                    return "积分加倍";

                case PromoteType.FullAmountSentFreight:
                    return "包邮";
            }
            return str;
        }
    }
}

